package UI;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.border.BevelBorder;
import java.awt.*;
import javax.swing.UIManager;
import javax.swing.JList;
import javax.swing.SwingConstants;
import javax.swing.border.SoftBevelBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Caffe_ClientMain {

	private JFrame frame;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Caffe_ClientMain window = new Caffe_ClientMain();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Caffe_ClientMain() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 1280, 800);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel menu_panel = new JPanel();
		
		JPanel result_panel = new JPanel();
		
		JPanel number_panel = new JPanel();
		
		JPanel panel_4 = new JPanel();
		panel_4.setLayout(null);
		
		JList list = new JList();
		list.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		list.setBounds(0, 20, 75, 451);
		panel_4.add(list);
		
		JLabel label_5 = new JLabel("CODE");
		label_5.setHorizontalAlignment(SwingConstants.CENTER);
		label_5.setBounds(0, 0, 76, 23);
		panel_4.add(label_5);
		
		JList list_1 = new JList();
		list_1.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		list_1.setBounds(75, 20, 180, 451);
		panel_4.add(list_1);
		
		JLabel label_6 = new JLabel("Product");
		label_6.setHorizontalAlignment(SwingConstants.CENTER);
		label_6.setBounds(76, 0, 176, 23);
		panel_4.add(label_6);
		
		JList list_2 = new JList();
		list_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		list_2.setBounds(255, 20, 47, 451);
		panel_4.add(list_2);
		
		JLabel label_7 = new JLabel("NO.");
		label_7.setHorizontalAlignment(SwingConstants.CENTER);
		label_7.setBounds(252, 0, 47, 23);
		panel_4.add(label_7);
		
		JList list_3 = new JList();
		list_3.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		list_3.setBounds(302, 20, 93, 451);
		panel_4.add(list_3);
		
		JLabel label_8 = new JLabel("COST");
		label_8.setHorizontalAlignment(SwingConstants.CENTER);
		label_8.setBounds(304, 0, 90, 23);
		panel_4.add(label_8);
		
		
		GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.TRAILING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
						.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()
							.addGap(15)
							.addComponent(menu_panel, GroupLayout.DEFAULT_SIZE, 837, Short.MAX_VALUE))
						.addGroup(groupLayout.createSequentialGroup()
							.addContainerGap(586, Short.MAX_VALUE)
							.addComponent(number_panel, GroupLayout.PREFERRED_SIZE, 266, GroupLayout.PREFERRED_SIZE)))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(result_panel, GroupLayout.PREFERRED_SIZE, 394, GroupLayout.PREFERRED_SIZE)
							.addGap(14))
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(panel_4, GroupLayout.PREFERRED_SIZE, 394, GroupLayout.PREFERRED_SIZE)
							.addContainerGap())))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(menu_panel, GroupLayout.PREFERRED_SIZE, 470, GroupLayout.PREFERRED_SIZE)
						.addComponent(panel_4, GroupLayout.PREFERRED_SIZE, 470, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(number_panel, GroupLayout.DEFAULT_SIZE, 263, Short.MAX_VALUE)
						.addComponent(result_panel, GroupLayout.PREFERRED_SIZE, 263, GroupLayout.PREFERRED_SIZE))
					.addContainerGap())
		);
		number_panel.setLayout(new GridLayout(0, 3, 0, 0));
		
		JButton button_43 = new JButton("7");
		number_panel.add(button_43);
		
		JButton button_44 = new JButton("8");
		number_panel.add(button_44);
		
		JButton button_45 = new JButton("9");
		number_panel.add(button_45);
		
		JButton button_40 = new JButton("4");
		number_panel.add(button_40);
		
		JButton button_41 = new JButton("5");
		number_panel.add(button_41);
		
		JButton button_42 = new JButton("6");
		number_panel.add(button_42);
		
		JButton btnNewButton = new JButton("1");
		number_panel.add(btnNewButton);
		
		JButton button_38 = new JButton("2");
		number_panel.add(button_38);
		
		JButton button_39 = new JButton("3");
		number_panel.add(button_39);
		
		JButton button_35 = new JButton("0");
		number_panel.add(button_35);
		
		JButton btnEnter = new JButton("Enter");
		number_panel.add(btnEnter);
		
		JButton btnClaer = new JButton("Claer");
		number_panel.add(btnClaer);
		result_panel.setLayout(null);
		
		textField = new JTextField();
		textField.setHorizontalAlignment(SwingConstants.RIGHT);
		textField.setBounds(0, 0, 394, 56);
		result_panel.add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("total cost :");
		lblNewLabel_2.setBounds(182, 66, 100, 30);
		result_panel.add(lblNewLabel_2);
		
		JLabel label = new JLabel("New label");
		label.setBounds(182, 194, 100, 30);
		result_panel.add(label);
		
		JLabel label_1 = new JLabel("New label");
		label_1.setBounds(182, 128, 100, 30);
		result_panel.add(label_1);
		
		JLabel label_2 = new JLabel("0");
		label_2.setBounds(294, 66, 100, 30);
		result_panel.add(label_2);
		
		JLabel label_3 = new JLabel("0");
		label_3.setBounds(294, 128, 100, 30);
		result_panel.add(label_3);
		
		JLabel label_4 = new JLabel("0");
		label_4.setBounds(294, 194, 100, 30);
		result_panel.add(label_4);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(UIManager.getBorder("DesktopIcon.border"));
		GridBagLayout gbl_panel_2 = new GridBagLayout();
		gbl_panel_2.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
		gbl_panel_2.rowHeights = new int[]{0, 0, 0};
		gbl_panel_2.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel_2.rowWeights = new double[]{0.0, 4.9E-324, Double.MIN_VALUE};
		panel_2.setLayout(gbl_panel_2);
		
		JButton btnCoffe = new JButton("Coffe");
		GridBagConstraints gbc_btnCoffe = new GridBagConstraints();
		gbc_btnCoffe.weighty = 30.0;
		gbc_btnCoffe.weightx = 10.0;
		gbc_btnCoffe.fill = GridBagConstraints.BOTH;
		gbc_btnCoffe.gridheight = 2;
		gbc_btnCoffe.insets = new Insets(0, 0, 0, 5);
		gbc_btnCoffe.gridx = 0;
		gbc_btnCoffe.gridy = 0;
		panel_2.add(btnCoffe, gbc_btnCoffe);
		
		JButton button_15 = new JButton("menu1");
		GridBagConstraints gbc_button_15 = new GridBagConstraints();
		gbc_button_15.fill = GridBagConstraints.BOTH;
		gbc_button_15.gridheight = 2;
		gbc_button_15.insets = new Insets(0, 0, 0, 5);
		gbc_button_15.gridx = 1;
		gbc_button_15.gridy = 0;
		panel_2.add(button_15, gbc_button_15);
		
		JButton button_16 = new JButton("menu2");
		GridBagConstraints gbc_button_16 = new GridBagConstraints();
		gbc_button_16.fill = GridBagConstraints.BOTH;
		gbc_button_16.gridheight = 2;
		gbc_button_16.insets = new Insets(0, 0, 0, 5);
		gbc_button_16.gridx = 2;
		gbc_button_16.gridy = 0;
		panel_2.add(button_16, gbc_button_16);
		
		JButton button_17 = new JButton("menu3");
		GridBagConstraints gbc_button_17 = new GridBagConstraints();
		gbc_button_17.fill = GridBagConstraints.BOTH;
		gbc_button_17.gridheight = 2;
		gbc_button_17.insets = new Insets(0, 0, 0, 5);
		gbc_button_17.gridx = 3;
		gbc_button_17.gridy = 0;
		panel_2.add(button_17, gbc_button_17);
		
		JButton button_18 = new JButton("menu4");
		GridBagConstraints gbc_button_18 = new GridBagConstraints();
		gbc_button_18.fill = GridBagConstraints.BOTH;
		gbc_button_18.gridheight = 2;
		gbc_button_18.insets = new Insets(0, 0, 0, 5);
		gbc_button_18.gridx = 4;
		gbc_button_18.gridy = 0;
		panel_2.add(button_18, gbc_button_18);
		
		JButton button_19 = new JButton("menu5");
		GridBagConstraints gbc_button_19 = new GridBagConstraints();
		gbc_button_19.fill = GridBagConstraints.BOTH;
		gbc_button_19.gridheight = 2;
		gbc_button_19.insets = new Insets(0, 0, 0, 5);
		gbc_button_19.gridx = 5;
		gbc_button_19.gridy = 0;
		panel_2.add(button_19, gbc_button_19);
		
		JButton button_20 = new JButton("menu6");
		GridBagConstraints gbc_button_20 = new GridBagConstraints();
		gbc_button_20.fill = GridBagConstraints.BOTH;
		gbc_button_20.gridheight = 2;
		gbc_button_20.gridx = 6;
		gbc_button_20.gridy = 0;
		panel_2.add(button_20, gbc_button_20);
		
		JPanel default_menu_panel = new JPanel();
		default_menu_panel.setBorder(UIManager.getBorder("DesktopIcon.border"));
		GridBagLayout gbl_default_menu_panel = new GridBagLayout();
		gbl_default_menu_panel.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
		gbl_default_menu_panel.rowHeights = new int[]{0, 0};
		gbl_default_menu_panel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_default_menu_panel.rowWeights = new double[]{0.0, Double.MIN_VALUE};
		default_menu_panel.setLayout(gbl_default_menu_panel);
		
		JButton Category_menu = new JButton("Tea");
		GridBagConstraints gbc_Category_menu = new GridBagConstraints();
		gbc_Category_menu.weighty = 30.0;
		gbc_Category_menu.weightx = 10.0;
		gbc_Category_menu.insets = new Insets(0, 0, 0, 5);
		gbc_Category_menu.fill = GridBagConstraints.BOTH;
		gbc_Category_menu.gridheight = 2;
		gbc_Category_menu.gridx = 0;
		gbc_Category_menu.gridy = 0;
		default_menu_panel.add(Category_menu, gbc_Category_menu);
		
		JButton menu1 = new JButton("menu1");
		GridBagConstraints gbc_menu1 = new GridBagConstraints();
		gbc_menu1.insets = new Insets(0, 0, 0, 5);
		gbc_menu1.fill = GridBagConstraints.BOTH;
		gbc_menu1.gridheight = 2;
		gbc_menu1.gridx = 1;
		gbc_menu1.gridy = 0;
		default_menu_panel.add(menu1, gbc_menu1);
		
		JButton menu2 = new JButton("menu2");
		GridBagConstraints gbc_menu2 = new GridBagConstraints();
		gbc_menu2.gridheight = 2;
		gbc_menu2.fill = GridBagConstraints.BOTH;
		gbc_menu2.insets = new Insets(0, 0, 0, 5);
		gbc_menu2.gridx = 2;
		gbc_menu2.gridy = 0;
		default_menu_panel.add(menu2, gbc_menu2);
		
		JButton menu3 = new JButton("menu3");
		GridBagConstraints gbc_menu3 = new GridBagConstraints();
		gbc_menu3.gridheight = 2;
		gbc_menu3.fill = GridBagConstraints.BOTH;
		gbc_menu3.insets = new Insets(0, 0, 0, 5);
		gbc_menu3.gridx = 3;
		gbc_menu3.gridy = 0;
		default_menu_panel.add(menu3, gbc_menu3);
		
		JButton menu4 = new JButton("menu4");
		GridBagConstraints gbc_menu4 = new GridBagConstraints();
		gbc_menu4.gridheight = 2;
		gbc_menu4.fill = GridBagConstraints.BOTH;
		gbc_menu4.insets = new Insets(0, 0, 0, 5);
		gbc_menu4.gridx = 4;
		gbc_menu4.gridy = 0;
		default_menu_panel.add(menu4, gbc_menu4);
		
		JButton menu5 = new JButton("menu5");
		GridBagConstraints gbc_menu5 = new GridBagConstraints();
		gbc_menu5.gridheight = 2;
		gbc_menu5.fill = GridBagConstraints.BOTH;
		gbc_menu5.insets = new Insets(0, 0, 0, 5);
		gbc_menu5.gridx = 5;
		gbc_menu5.gridy = 0;
		default_menu_panel.add(menu5, gbc_menu5);
		
		JButton menu6 = new JButton("menu6");
		GridBagConstraints gbc_menu6 = new GridBagConstraints();
		gbc_menu6.gridheight = 2;
		gbc_menu6.fill = GridBagConstraints.BOTH;
		gbc_menu6.gridx = 6;
		gbc_menu6.gridy = 0;
		default_menu_panel.add(menu6, gbc_menu6);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBorder(UIManager.getBorder("DesktopIcon.border"));
		GridBagLayout gbl_panel_3 = new GridBagLayout();
		gbl_panel_3.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
		gbl_panel_3.rowHeights = new int[]{0, 0, 0};
		gbl_panel_3.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel_3.rowWeights = new double[]{0.0, 4.9E-324, Double.MIN_VALUE};
		panel_3.setLayout(gbl_panel_3);
		
		JButton btnmenu1 = new JButton("menu1");
		GridBagConstraints gbc_btnmenu1 = new GridBagConstraints();
		gbc_btnmenu1.weighty = 30.0;
		gbc_btnmenu1.weightx = 10.0;
		gbc_btnmenu1.fill = GridBagConstraints.BOTH;
		gbc_btnmenu1.gridheight = 2;
		gbc_btnmenu1.insets = new Insets(0, 0, 0, 5);
		gbc_btnmenu1.gridx = 0;
		gbc_btnmenu1.gridy = 0;
		panel_3.add(btnmenu1, gbc_btnmenu1);
		
		JButton button_22 = new JButton("menu1");
		GridBagConstraints gbc_button_22 = new GridBagConstraints();
		gbc_button_22.fill = GridBagConstraints.BOTH;
		gbc_button_22.gridheight = 2;
		gbc_button_22.insets = new Insets(0, 0, 0, 5);
		gbc_button_22.gridx = 1;
		gbc_button_22.gridy = 0;
		panel_3.add(button_22, gbc_button_22);
		
		JButton button_23 = new JButton("menu2");
		GridBagConstraints gbc_button_23 = new GridBagConstraints();
		gbc_button_23.fill = GridBagConstraints.BOTH;
		gbc_button_23.gridheight = 2;
		gbc_button_23.insets = new Insets(0, 0, 0, 5);
		gbc_button_23.gridx = 2;
		gbc_button_23.gridy = 0;
		panel_3.add(button_23, gbc_button_23);
		
		JButton button_24 = new JButton("menu3");
		GridBagConstraints gbc_button_24 = new GridBagConstraints();
		gbc_button_24.fill = GridBagConstraints.BOTH;
		gbc_button_24.gridheight = 2;
		gbc_button_24.insets = new Insets(0, 0, 0, 5);
		gbc_button_24.gridx = 3;
		gbc_button_24.gridy = 0;
		panel_3.add(button_24, gbc_button_24);
		
		JButton button_25 = new JButton("menu4");
		GridBagConstraints gbc_button_25 = new GridBagConstraints();
		gbc_button_25.fill = GridBagConstraints.BOTH;
		gbc_button_25.gridheight = 2;
		gbc_button_25.insets = new Insets(0, 0, 0, 5);
		gbc_button_25.gridx = 4;
		gbc_button_25.gridy = 0;
		panel_3.add(button_25, gbc_button_25);
		
		JButton button_26 = new JButton("menu5");
		GridBagConstraints gbc_button_26 = new GridBagConstraints();
		gbc_button_26.fill = GridBagConstraints.BOTH;
		gbc_button_26.gridheight = 2;
		gbc_button_26.insets = new Insets(0, 0, 0, 5);
		gbc_button_26.gridx = 5;
		gbc_button_26.gridy = 0;
		panel_3.add(button_26, gbc_button_26);
		
		JButton button_27 = new JButton("menu6");
		GridBagConstraints gbc_button_27 = new GridBagConstraints();
		gbc_button_27.fill = GridBagConstraints.BOTH;
		gbc_button_27.gridheight = 2;
		gbc_button_27.gridx = 6;
		gbc_button_27.gridy = 0;
		panel_3.add(button_27, gbc_button_27);
		
		JPanel panel = new JPanel();
		panel.setBorder(UIManager.getBorder("DesktopIcon.border"));
		GridBagLayout gbl_panel = new GridBagLayout();
		gbl_panel.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
		gbl_panel.rowHeights = new int[]{0, 0, 0};
		gbl_panel.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_panel.rowWeights = new double[]{0.0, 4.9E-324, Double.MIN_VALUE};
		panel.setLayout(gbl_panel);
		
		JButton btnEtc = new JButton("ETC");
		GridBagConstraints gbc_btnEtc = new GridBagConstraints();
		gbc_btnEtc.weighty = 30.0;
		gbc_btnEtc.weightx = 10.0;
		gbc_btnEtc.fill = GridBagConstraints.BOTH;
		gbc_btnEtc.gridheight = 2;
		gbc_btnEtc.insets = new Insets(0, 0, 0, 5);
		gbc_btnEtc.gridx = 0;
		gbc_btnEtc.gridy = 0;
		panel.add(btnEtc, gbc_btnEtc);
		
		JButton button_1 = new JButton("menu1");
		GridBagConstraints gbc_button_1 = new GridBagConstraints();
		gbc_button_1.fill = GridBagConstraints.BOTH;
		gbc_button_1.gridheight = 2;
		gbc_button_1.insets = new Insets(0, 0, 0, 5);
		gbc_button_1.gridx = 1;
		gbc_button_1.gridy = 0;
		panel.add(button_1, gbc_button_1);
		
		JButton button_2 = new JButton("menu2");
		GridBagConstraints gbc_button_2 = new GridBagConstraints();
		gbc_button_2.fill = GridBagConstraints.BOTH;
		gbc_button_2.gridheight = 2;
		gbc_button_2.insets = new Insets(0, 0, 0, 5);
		gbc_button_2.gridx = 2;
		gbc_button_2.gridy = 0;
		panel.add(button_2, gbc_button_2);
		
		JButton button_3 = new JButton("menu3");
		GridBagConstraints gbc_button_3 = new GridBagConstraints();
		gbc_button_3.fill = GridBagConstraints.BOTH;
		gbc_button_3.gridheight = 2;
		gbc_button_3.insets = new Insets(0, 0, 0, 5);
		gbc_button_3.gridx = 3;
		gbc_button_3.gridy = 0;
		panel.add(button_3, gbc_button_3);
		
		JButton button_4 = new JButton("menu4");
		GridBagConstraints gbc_button_4 = new GridBagConstraints();
		gbc_button_4.fill = GridBagConstraints.BOTH;
		gbc_button_4.gridheight = 2;
		gbc_button_4.insets = new Insets(0, 0, 0, 5);
		gbc_button_4.gridx = 4;
		gbc_button_4.gridy = 0;
		panel.add(button_4, gbc_button_4);
		
		JButton button_5 = new JButton("menu5");
		GridBagConstraints gbc_button_5 = new GridBagConstraints();
		gbc_button_5.fill = GridBagConstraints.BOTH;
		gbc_button_5.gridheight = 2;
		gbc_button_5.insets = new Insets(0, 0, 0, 5);
		gbc_button_5.gridx = 5;
		gbc_button_5.gridy = 0;
		panel.add(button_5, gbc_button_5);
		
		JButton button_6 = new JButton("menu6");
		GridBagConstraints gbc_button_6 = new GridBagConstraints();
		gbc_button_6.fill = GridBagConstraints.BOTH;
		gbc_button_6.gridheight = 2;
		gbc_button_6.gridx = 6;
		gbc_button_6.gridy = 0;
		panel.add(button_6, gbc_button_6);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(UIManager.getBorder("DesktopIcon.border"));
		
		JButton button_13 = new JButton("\uD560\uC77810%");
		menu_panel.setLayout(new GridLayout(0, 1, 0, 0));
		menu_panel.add(panel_2);
		menu_panel.add(default_menu_panel);
		menu_panel.add(panel_3);
		menu_panel.add(panel);
		menu_panel.add(panel_1);
		panel_1.setLayout(new GridLayout(0, 6, 0, 0));
		
		JButton button_8 = new JButton("\uC0F7\uCD94\uAC00");
		panel_1.add(button_8);
		
		JButton button_9 = new JButton("menu2");
		panel_1.add(button_9);
		
		JButton button_10 = new JButton("menu3");
		panel_1.add(button_10);
		
		JButton button_11 = new JButton("menu4");
		panel_1.add(button_11);
		
		JButton button_12 = new JButton("menu5");
		panel_1.add(button_12);
		panel_1.add(button_13);
		frame.getContentPane().setLayout(groupLayout);
	}
}
